#!/bin/bash
# Copyrignt (c) maozhihua.com. All Rights Reserved.
# Author: Mao Zhihua<maozhihua@skyworth.com>
# Created Time: 2016-09-10 16:02:07
# Last Modified: 2016-12-22 14:30:47
# File Name: update_module_order.sh
# Description: 

source ./gl.sh

body='{"region_code":"all","clickable":1,"title":"热门","title_id":6,"starttick":1,"endtick":1499999999,"routers":"zhjt://app.zjdj.com/goodslist"}'
body1='{"region_code":"all","clickable":1,"title":"电视","title_id":1,"starttick":1,"endtick":1499999999,"routers":"zhjt://app.zjdj.com/goodslist"}'
body2='{"region_code":"all","clickable":1,"title":"冰箱","title_id":2,"starttick":1,"endtick":1499999999,"routers":"zhjt://app.zjdj.com/goodslist"}'
body3='{"region_code":"all","clickable":1,"title":"洗衣机","title_id":3,"starttick":1,"endtick":1499999999,"routers":"zhjt://app.zjdj.com/goodslist"}'
body4='{"region_code":"all","clickable":1,"title":"空调","title_id":4,"starttick":1,"endtick":1499999999,"routers":"zhjt://app.zjdj.com/goodslist"}'
body5='{"region_code":"all","clickable":1,"title":"其他","title_id":5,"starttick":1,"endtick":1499999999,"routers":"zhjt://app.zjdj.com/goodslist"}'

#curl -v -k "https://${host}/homepage/web/pageview/add?appkey=${appkey}" -d "${body1}"

curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/pageview/add?appkey=${appkey}" -d "${body}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/pageview/add?appkey=${appkey}" -d "${body1}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/pageview/add?appkey=${appkey}" -d "${body2}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/pageview/add?appkey=${appkey}" -d "${body3}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/pageview/add?appkey=${appkey}" -d "${body4}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/pageview/add?appkey=${appkey}" -d "${body5}"

